<?php

session_start();
//clear session variables
$_SESSION['username'] = null;
$_SESSION['fname'] = null;
$_SESSION['lname'] = null;
$_SESSION['permissionLevel'] = null;
$_SESSION['userID'] = null;

session_destroy();

//forward to login page
header('Location: ' . 'index.php');

?>
